#include <iostream>
#include <string>

/**
 * 
 * 
 * 倒置输出字符串
 */
int main(){
    
    std::string str;

    std::cin >> str;

    for (int i = str.size()-1; i >= 0; i--) {
        std::cout << str[i];
    }


    return 0;
}